﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;
    import flash.utils.*;

    public class SOnlineSectionCountInfo extends IMessageBase
    {
        public var cellAppId:int;
        public var cellId:int;
        public var sectionCounts:Dictionary;
        public const _type:int = 15225;
        public static var _regist:SOnlineSectionCountInfo = new SOnlineSectionCountInfo(true);

        public function SOnlineSectionCountInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SOnlineSectionCountInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.cellAppId);
            param1.writeInt(this.cellId);
            DictIntIntHelper.write(param1, this.sectionCounts);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.cellAppId = param1.readInt();
            this.cellId = param1.readInt();
            this.sectionCounts = DictIntIntHelper.read(param1);
            return;
        }// end function

    }
}
